﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Reflection;
using System.Diagnostics;
using MahApps.Metro.Controls;

namespace TimeSplicer.App
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class Shell : MetroWindow
    {
        public Shell()
        {
            InitializeComponent();


            initialize();
        }

        private void initialize()
        {
            // display build number
            var assembly = Assembly.GetExecutingAssembly();
            FileVersionInfo f = FileVersionInfo.GetVersionInfo(assembly.Location);

            this.buildInfo.Text = String.Format("Build: {0}", f.FileVersion);
        }

        private void loginButton_Click(object sender, RoutedEventArgs e)
        {
            // open login window
            // open pop up or i put login in main window duh]
            var c = new TimeSplicerModule.Controllers.LoginController();
            c.NavigateToView();


            // willhave to feed event back up to session
        }
    }
}